//
//  ZFFinancelInfoModal.m
//  HappilyLoan
//
//  Created by zainishenbian on 2017/4/7.
//  Copyright © 2017年 zongqingxiangqian. All rights reserved.
//

#import "ZFFinancelInfoModal.h"

@implementation ZFFinancelInfoModal
+ (instancetype)getFinancelInfoDictionary:(NSDictionary *)dict
{
    ZFFinancelInfoModal *modal = [ZFFinancelInfoModal new];
    
    modal.other_income = [NSString stringWithFormat:@"%@",dict[@"other_income"]];
    modal.owe_loan = [NSString stringWithFormat:@"%@",dict[@"owe_loan"]];
    if ([modal.owe_loan integerValue] == 0) {
        
        modal.owe_loan = @"";
    }
    if ([modal.other_income integerValue] == 0) {
        
        modal.owe_loan = @"";
    }
    modal.salary_income = [NSString stringWithFormat:@"%@",dict[@"salary_income"]];
    
    return modal;
}
@end
